package com.sky.config;

import com.sky.properties.BaiDuProperties;
import com.sky.utils.BaiDuMapUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BaiDuMapConfiguration {
    @Bean
    public BaiDuMapUtil baiDuMapUtil(BaiDuProperties baiDuProperties){
        BaiDuMapUtil baiDuMapUtil = new BaiDuMapUtil();
        baiDuMapUtil.setAddress(baiDuProperties.getAddress());
        baiDuMapUtil.setAk(baiDuProperties.getAk());
        return baiDuMapUtil;
    }

}
